package com.rmi;

import com.dao.Flight;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 * Created by Phillip on 2014/4/15.
 */
public interface RMIInterface extends Remote {

    public List<Flight> queryFlights(String deptString, String destString, String deptDateString, String returnDateString) throws RemoteException;

    public List<String> queryCity() throws RemoteException;

    public String book(String flightNoString1, String deptString, String clasString1, String flightNoString2, String returnString,
                       String classString2, String nameString, String creditString) throws RemoteException;

    public String queryRates(String flightString, String classString) throws RemoteException;

    public String queryAirline(String deptString, String dsctString) throws RemoteException;
}
